import request from '@/utils/request';

export function login(data) {
	return request({
		url: '/login',
		method: 'post',
		data,
	});
}

// 获取验证码
export function getCodeImg(str) {
	return request({
		url: '/captchaImage?str=' + str,
		method: 'get',
		timeout: 20000,
	});
}
